package cn.st4rlight.util.exception;

import javax.annotation.Nonnull;

import cn.st4rlight.util.response.ResultCode;

/**
 * @author st4rlight <st4rlight@163.com>
 * Created on 2025-05-03
 */
public class ValidateException extends BizException {

    public ValidateException(String message) {
        super(ResultCode.PARAM_INVALID, message);
    }

    public static ValidateException of(@Nonnull String bizErrMsg) {
        return new ValidateException(bizErrMsg);
    }
}
